package DP.decoration.school.decorator.impl;

import DP.decoration.school.component.SchoolReport;
import DP.decoration.school.decorator.Decorator;

/**
 * @author msi
 * 最高成绩修饰
 */
public class HighScoreDecorator extends Decorator {

    public HighScoreDecorator(SchoolReport schoolReport) {
        super(schoolReport);
    }

    private void reportHighScore(){
        System.out.println("最高成绩。。。。");
    }

    @Override
    public void report() {
        this.reportHighScore();
        super.report();
    }
}
